 import utills from './request.js';
 import url from './url.js';

export const getCapchImage = (params = {}) => {
  return utills._get(url.GETCAPCHAIMAGE, params)
}
export const setChcaph = (params = {}) => {
  return utills._post(url.SETMATCHACAPT, params,false)
}
export const upLogin = (params = {}) => {
  return utills._post(url.UPLOGIN, params)
}
export const getUserInfor = (params = {}) => {
  return utills._post(url.GETUSERTINFOR, params)
}
export const LoginOut = (params = {}) => {
  return utills._get(url.LOGINOUT, params)
}
export const eventType = (params = {}) => {
  return utills._get(url.EVENTTYPE, params)
}
export const eventType1 = (params = {},data) => {
  return utills._get(url.EVENTTYPE1+data, params)
}
export const eventType2 = (params = {},data) => {
  return utills._get(url.EVENTTYPE2+data, params)
}
export const eventType3 = (params = {},data) => {
  return utills._get(url.EVENTTYPE3+data, params)
}
export const insertevet = (params = {},) => {
  return utills._post(url.INSERTEVENT, params,false)
}
export const eventTypeByname = (params = {},) => {
  return utills._get(url.EVENTTYPEBYNAME, params)
}
export const geteventCount = (params = {},data) => {
  return utills._get(url.GETEVENTCOUNT+data, params)
}
//全部案件
export const geteventlist = (params = {},) => {
  return utills._get(url.GETEVENTLIST, params)
}
export const getEventInfoByEventId = (params = {},data) => {
  return utills._get(url.GETBYEVENTID+data, params)
}
export const getEventLogList = (params = {},data) => {
  return utills._get(url.GETBYEVENlOGLIST+data, params)
}
//获取案件描述
export const getEvenCode= (params = {},) => {
  return utills._get(url.GETEVENTCODE, params)
}
//案件核查提交
export const Dealevent= (params = {},) => {
  return utills._post(url.DEALEVENT, params,false)
}
//已办案件
export const geteventdeal= (params = {},) => {
  return utills._get(url.GETEVENTDEAL, params,false)
}
//我的上报
export const getMyeventCase= (params = {},) => {
  return utills._get(url.GETMYEVENTCASE, params,false)
}
//获取派遣人员
export const getUserList= (params = {}) => {
  return utills._get(url.GETUERSERORGANIZATION, params,false)
}
 //派遣获取机构人员
export const getEventUp= (params = {},data) => {
  return utills._get(url.GETORGANIZATUP+data, params,false)
}
//派遣处置人员
export const geteventPqby= (params = {},) => {
  return utills._post(url.GETEVENTPQBY, params,false)
}
//派遣回退
export const geteventgoback= (params = {},) => {
  return utills._post(url.GETEVENTGOBACK, params,false)
}
//待派遣申请 延期缓办
export const geteventSlow= (params = {},) => {
  return utills._post(url.GETEVENTSLOW, params,false)
}
//检测是否可以申请延期
export const geteventDelay= (params = {},) => {
  return utills._get(url.GETEVENTDELAY, params,false)
}
//检测是否可以申请缓办
export const geteventhbSlow=(params = {},) => {
  return utills._get(url.GETEVENTHBSLOW, params,false)
}
//接线员回转
export const getreturnjxy= (params = {},) => {
  return utills._post(url.GETRETURNJXY, params,false)
}
//监理驳回审核接口
export const getEventbzy= (params = {},) => {
  return utills._post(url.GETEVENTHZBY, params,false)
}
//监理查询处置结果
export const getEventresult= (params = {},data) => {
  return utills._get(url.GETEVENTRESENT+data, params,false)
}
//打卡
export const getAddCheck= (params = {}) => {
  return utills._post(url.ADDCLOCK, params,false)
}
//打卡记录 
export const getcheckList= (params = {},data) => {
  return utills._get(url.COLOCBYLIST+data, params,false)
}
//经纬度实时上传
export const uploadAppGps= (params = {}) => {
  return utills._post(url.UPLOADAPPGPS, params,false)
}
//督办借口
export const eventOversee= (params = {}) => {
  return utills._post(url.EVENTOVERSEE, params,false)
}
//督办列表
export const getEventlistBydu= (params = {}) => {
  return utills._get(url.GETEVENTLISTBYEVENT, params,false)
}
//消息统计列表
export const getMessageUnRead= (params = {}) => {
  return utills._get(url.GETMESSAGEUNREAD, params,false)
}
//消息列表
export const getMessageList= (params = {}) => {
  return utills._get(url.GETMESSAGLIST, params,false)
}
//标记已读
export const getMessageRead= (params = {}) => {
  return utills._post(url.GETMESSAGLISTREAD, params,false)
}
export const getAppversion= (params = {}) => {
  return utills._get(url.GETAPPVERSION, params,false)
}

//一级分类
export const getCategoryOne = (params = {}) => {
	return utills._get(url.FINDCATEGORYONE, params,false, false)
}

//二级分类

export const getCategoryTwo = (params = {}) => {
	return utills._post(url.FINDCATEGORYTWO, params,false, false)
}
//通过基础设施表的id(动态查询设施表的属性字段)
export const getFacilitiesTableField = (params = {}) => {
	return utills._post(url.FINDFACILITIESTABLEFIELD, params,false, false)
}
//新增设施
export const insertFacility = (params = {}) => {
	return utills._post(url.INSERTFACILITY, params, false, false)
}

//上传的图片,与设施关联
export const imagesRelevanceFacility = (params = {}) => {
	return utills._post(url.IMAGESRELEVANCEFACILITY, params, false, false)
}

//获取定位
export const getReLocation = ((params = {}) => {
	return utills._get(url.COLLECTlOCATION, params,false, false)
})

//根据x,y坐标查询区域

export const queryAreaByXy = ((params = {}) => {
	return utills._post(url.QUERYAREABYXY, params,false, false)
})

